package com.shenmazong.core;

/**
 * @program: server-java-demo
 * @description: 装箱与拆箱演示
 * @author: 亮子说编程
 * @create: 2020-10-15 09:58
 **/
public class TypeInstall01 {

    public static void main(String[] args) {

        //-- 自动装箱
        Integer age = 1;

        //-- 手动装箱
        Integer score = new Integer(1);

        //-- 自动拆箱
        int myAge = age;

        //-- 手动拆箱
        int myScore = score.intValue();
    }
}
